package com.cust.yx.model.product;

import com.cust.yx.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * sku信息
 * </p>
 *
 * @author lei
 * @since 2024-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SkuInfo对象", description="sku信息")
public class SkuInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "平台属性分组id")
    private Long attrGroupId;

    @ApiModelProperty(value = "商品类型：0->普通商品 1->秒杀商品")
    private Integer skuType;

    @ApiModelProperty(value = "sku名称")
    private String skuName;

    @ApiModelProperty(value = "展示图片")
    private String imgUrl;

    @ApiModelProperty(value = "限购个数/每天（0：不限购）")
    private Integer perLimit;

    @ApiModelProperty(value = "上架状态：0->下架；1->上架")
    private Integer publishStatus;

    @ApiModelProperty(value = "审核状态：0->未审核；1->审核通过")
    private Integer checkStatus;

    @ApiModelProperty(value = "是否新人专享：0->否；1->是")
    private Integer isNewPerson;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "sku编码")
    private String skuCode;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "市场价")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "锁定库存")
    private Integer lockStock;

    @ApiModelProperty(value = "预警库存")
    private Integer lowStock;

    @ApiModelProperty(value = "销量")
    private Integer sale;

    @ApiModelProperty(value = "仓库")
    private Long wareId;
}
